Skip to main content

Create Channel

AutomatR.Slack.Activities.CreateChannel

The "Create Channel" activity in AutomatR is part of the Slack Channel activities package, leveraging the Slack API to create a new channel within your workspace. This activity facilitates the automation of channel creation, supporting enhanced collaboration and communication workflows.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Create Channel" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Is Private ChannelSpecifies whether the new channel will be public or private based on a boolean value. Boolean variables indicating whether the channel should be private.
Channel NameThe name of the channel that you want to create. String variables containing the desired channel name.
Output
Channel DataReturns the response as created channel data. Variables of type CreateChannelResult to store information about the newly created channel.

CreateChannelResult Class

PropertyDescription
createdThe timestamp indicating when the channel was created.
idThe unique identifier for the channel.
is_channelIndicates whether the channel is a general channel.
nameThe name of the channel.
is_groupIndicates whether the channel is a group channel.
is_mpimIndicates whether the channel is an MPIM (multiparty instant messaging) channel.
isPrivateIndicates whether the channel is private.

How to use:

  1. Drag and drop the "Create Channel" activity onto the workflow.
  2. Configure the properties by specifying the channel name and optionally indicating whether it should be private.
  3. Optionally, configure the delay.
  4. Execute the workflow to create the specified channel.

Example: Consider an example where the "Create Channel" activity is used to create a new public channel named "TeamAnnouncements":

Create Channel:
Delay: 2
Channel Name: "TeamAnnouncements"
Is Private Channel: false
Channel Data: NewChannelData

In this example, the activity creates a new public channel named "TeamAnnouncements," and the result is stored in the variable "NewChannelData" for further handling in the workflow.